package cn.xorange.commons.core.basic.service;

import cn.xorange.commons.data.core.entity.BaseEntity;

import java.io.Serializable;
import java.util.List;

/**
 * @author : yangjian
 * date : 2024/1/23
 * description :
 */
public interface IBaseService <T extends BaseEntity>{

    List<T> getList(T t);

    T getById(Long id);
    void changeStatus(T t);
    int add(T t);

    int update(T t);

    int deleteById(Long id);
    int deleteByIds(Long[] ids);
    void truncate();

    public List<T> getListPlus(T entity);
}
